import request from '@/utils/request'

export default {
  getAnswerByQid(questionId) {
    return request({
      url: '/qa/answer/detail/' + questionId,
      method: 'get',
    })
  },
  addAnswer(answer)
  {
    return request({
      url: '/qa/answer/add',
      method: 'post',
      data:answer
    })
  },
}
